import httpInstance from "@/utils/http";

export function getCommentsAPI(goodsId) {
    return httpInstance({
        url: '/comment/getComments',
        params: {
            goodsId
        }
    })
}


export function addCommentAPI(data) {
    return httpInstance({
        url: '/comment/addComment',
        method: 'POST',
        data
    })
}

export function addLikeAPI(id) {
    return httpInstance({
        url: '/comment/addLikeCount',
        params:{
            id
        }
    })
}